#ifndef GUARD_Vector2_h
#define GUARD_Vector2_h

class Vector2
	{
	public:
		static const Vector2 ZERO;
		float x,y;
		
		Vector2();
		Vector2(float inx, float iny);
		float getMagnitude();
		void normalize();
		//Vector2 crossProduct(const Vector2& v) const;
		
		Vector2 operator-();
		Vector2 operator-(const Vector2 &v) const;
		Vector2 operator+(const Vector2& v) const;
		Vector2 operator/(const float d) const;
		Vector2 operator*(const float m) const;
		float operator*(const Vector2& v) const;
		float& operator[] (unsigned i);
		bool operator==(const Vector2& other) const;
	};

#endif